<?php View::content();
echo '<center>';
echo "<table id='box-table-a'>";
    echo "<tr>";
    echo "<td colspan='2'>";
    echo "<center><h1>Modificar proveedor</h1></center>";
    echo "</td>";
    echo "</tr>";
  
    echo Form::open(); // por defecto llama a la misma url
    
    echo "<tr>";
    echo "<td>"; 
    echo Form::label("Nombre: ", "nombre");
    echo "</td>";
    echo "<td>";
    echo Form::text('proveedor.nombre_prov');
    echo "</td>";
    echo "</tr>";

    echo "<tr>";
    echo "<td>"; 
    echo Form::label("Direccion: ", "direccion");
    echo "</td>";
    echo "<td>";
    echo Form::text('proveedor.direccion_prov') ;
    echo "</td>";
    echo "</tr>";
    
    echo "<tr>";
    echo "<td>"; 
    echo Form::label("Telefono: ", "telefono");
    echo "</td>";
    echo "<td>";
    echo Form::text('proveedor.telefono_prov');
    echo "</td>";
    echo "</tr>";
    
    echo "<tr>";
    echo "<td>"; 
    echo Form::label("Rut: ", "rut");
    echo "</td>";
    echo "<td>";
    echo Form::text('proveedor.rut_prov','readonly="true"');
    echo "</td>";
    echo "</tr>";
    
    echo Form::hidden('proveedor.id');
        
    echo "<tr>";
    echo "<td colspan='2'><center>";
    echo form::submit('Actualizar','class=botonPublicar');
    echo "</center></td>";
    echo "</tr>";
 
 echo Form::close();
echo "</table>";
?>
</center> 